var host = 'http://wx.mtmstar.com'
var cid = 'admins'

function loadHeader(n) {
	$(".head-list li").eq(n).addClass('check')
}


function search() {

var  url_list = (window.location.pathname).split("/")
var i = url_list.length -1
var  url_html = url_list[i]
	var  url = url_html+"?condition=" +$('#search_btn').val()
	var url1 = encodeURI(url)
	window.location.href  = url1
}

var str = sessionStorage.obj;
if(str === undefined) {
	console.log(str)
	$('#exit').text('')
	//		window.location.href = "login.html";
} else if(str != null){
	var obj = $.parseJSON(str);
	console.log(obj)
	var tel = obj.data.Phone
	$('#state').text(obj.data.Phone)
	$('#exit').text('退出')

}
function exit() {
      sessionStorage.clear()
      $('#state').text('登录/注册')
      $('#exit').text('')
    }
